﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<MvcMusicStore.ViewModels.SearchViewModel>" %>

<%--<%using (Html.BeginForm("SearchAdvance", "Home")){ %>--%>
<div id="search_Advance">
<form action="/Home/SearchAdvance" method="post">

    <input type="text" name="searchTerm" id="searchTermAdvance" value="Từ khóa" size="10" maxlength ="30"/>
    <%= Html.DropDownList("genreId", new SelectList((IEnumerable)Model.Genres, "GenreId", "Name")) %>
    <%= Html.DropDownList("artistId", new SelectList((IEnumerable)Model.Artists, "ArtistId", "Name"))%>
    <%= Html.DropDownList("priceFrom", new SelectList((IEnumerable)Model.PriceFrom))%>
    <%= Html.DropDownList("priceTo", new SelectList((IEnumerable)Model.PriceTo))%>
    <input type ="submit" value="Tìm" />
    <%--<%= Html.DropDownList("Select One", "CategoryId", ViewData.Model.Genres, "GenreId", "Name", ViewData.Model.SelectedCategoryId)) %>--%>

</form>
</div>
<%--<%} %>--%>